<template>
  <div>
    <el-space wrap style="margin-bottom:10px">
      <el-input v-model="input" placeholder="请输入管理员ID" clearable />
      <el-button type="primary" :icon="Search">查找</el-button>
    </el-space>
     <el-table :data="tableData" style="width: 100%" border>
    <el-table-column prop="id" label="日志ID" />
    <el-table-column prop="adminID" label="管理员ID"  />
    <el-table-column prop="requsetId" label="请求ID" />
    <el-table-column prop="group" label="Apl分组" />
    <el-table-column prop="method" label="Apl方法"  />
    <el-table-column prop="gmtCreate" label="操作时间" />
  </el-table>
  <dome v-bind="domes" @limits="limits" @pages="pages"/>
  </div>
</template>
<script>
import Cookies from "js-cookie";
import http from "../../util/http";
import dome from "../../components/dome.vue";
export default {
    components:{
        dome
    },
    data(){
        return{
            tableData:[],
            domes:{
                    limit:10,
                    page:10,
                    total:10,
            },
            adminId:"",
            token:""
        }
    },
    created(){
        this.log()
    },
    computed(){
       
        this.token = Cookies.get("token")
    },
    methods:{
        log(){
          console.log(this.token,112200);
            let logdata = {
                _gp:"admin.log",
                _mt:"list",
                targetAdminId:this.adminId,
                page:this.domes.page,
                limit:this.domes.limit,
            }
            http.post(logdata).then((res)=>{
                    console.log(res,"请求成功11");
            }).catch((err)=>{
                console.log(err,"请求失败");
            })
        }
    }
}
</script>